class Sigleton(object):
    own = None

    def __new__(cls, *args, **kwargs):
        if Sigleton.own is None:
            print("创建了一个新对象")
            Sigleton.own = object.__new__(cls, *args, **kwargs)
        return Sigleton.own

if __name__ == '__main__':
    o2 = Sigleton()
    o3 = Sigleton()

